package com.example.design.c.observer.demo2;

/**
 * 具体观察者 老师
 */
public class Teacher implements RingBellEvent {

    @Override
    public void response(boolean flag) {
        if (flag) {
            System.out.println("老师上课了");
            return;
        }
        System.out.println("老师下课了");
    }
}
